package com.artron.mediaartron.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-18.
 */

public class IOUtils {

    public static void close(InputStream in) {
        if (in != null) {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    public static void close(OutputStream out) {
        if (out != null) {
            try {
                out.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
